package com.hcb.tonguetiphealth.model;

import java.text.SimpleDateFormat;
import java.util.Date;



public class CityActivity extends AbstractTask{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String id;
	private User user;
	private String activityName;
	private String activityAddress;
	private String activityIntro;
	private int peopleNum;
	private int type; //1:商家  2:个人
	private long addTime;  //发布时间
	private boolean open; //是否展开详细信息
	private boolean isTop; //是否为置顶
	private String tel;  //报名联系方式
	private String cityId;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public String getActivityName() {
		return formate(activityName);
	}
	public void setActivityName(String activityName) {
		this.activityName = activityName;
	}
	public String getActivityAddress() {
		return formate(activityAddress);
	}
	public void setActivityAddress(String activityAddress) {
		this.activityAddress = activityAddress;
	}
	public String getActivityIntro() {
		return formate(activityIntro);
	}
	public void setActivityIntro(String activityIntro) {
		this.activityIntro = activityIntro;
	}
	public int getPeopleNum() {
		return peopleNum;
	}
	public void setPeopleNum(int peopleNum) {
		this.peopleNum = peopleNum;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getAddTime() {
		if(addTime != 0) {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
			return sdf .format(new Date(addTime * 1000));
		}
		
		return"0";
	}
	public void setAddTime(long addTime) {
		this.addTime = addTime;
	}
	public boolean isOpen() {
		return open;
	}
	public void setOpen(boolean open) {
		this.open = open;
	}
	public boolean isTop() {
		return isTop;
	}
	public void setTop(boolean isTop) {
		this.isTop = isTop;
	}
	public String getTel() {
		return formate(tel);
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public String getCityId() {
		return formate(cityId);
	}
	public void setCityId(String cityId) {
		this.cityId = cityId;
	}
	
	
	
}